﻿<div data-ng-controller="FileDialogController as dialog">
    <h3 data-ng-click="dialog.setDelete()"><span class="label label-info">Delete File</span></h3>
    <div data-ng-show="dialog.delete" >
        <p class=" alert alert-danger" role="alert">
        Are you sure you wish to delete this file?</p>
        <div class="btn-group">
            <button type="button" class="btn btn-default" data-ng-click="dialog.doDelete()">Delete</button>
            <button type="button" class="btn btn-default" data-ng-click="dialog.cancelDelete()">Cancel</button>
        </div>
    </div>
    <h3 data-ng-click="dialog.setRename()"><span class="label label-info">Rename File</span></h3>
    <div data-ng-show="dialog.rename">
        <label for="txtRename">Rename</label>
        <input type="text" data-ng-model="dialog.newName" id="txtRename" />
        <div class="btn-group">
            <button type="button" class="btn btn-default" data-ng-click="dialog.doRename()">Rename</button>
            <button type="button" class="btn btn-default" data-ng-click="dialog.cancelRename()">Cancel</button>
        </div>
    </div>
    <h3><span class="label label-info" data-ng-click="dialog.doCopy()">Copy File</span></h3>

    <h3><span class="label label-info" data-ng-click="dialog.setMove()">Move File</span></h3>
    <div data-ng-show="dialog.move">
        <div class="btn-group">
            <div>
                <label for="selLocation">Move to</label>
                <select id="selLocation" data-ng-model="dialog.newLocation">
                    <option data-ng-repeat="line in dialog.folderStruct" value="{{ line }}">{{ line }}</option>
                </select>
            </div>
            <div>
                <button type="button" class="btn btn-default" data-ng-click="dialog.doMove()">Move</button>
                <button type="button" class="btn btn-default" data-ng-click="dialog.cancelMove()">Cancel</button>
            </div>
        </div>
    </div>

</div>